package com.example.knowman.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.knowman.ReturnMessage.Message;
import com.example.knowman.ReturnMessage.MessageExKnowShareKey;
import com.example.knowman.entity.knowShare;
import com.example.knowman.entity.log4operate;

import java.util.List;
import java.util.Map;

public interface IKnowShareService extends IService<knowShare>{


    MessageExKnowShareKey Insert(Integer knowId, String myStaffCode, String comment);


    IPage<knowShare> getAll(Integer pageNum, Integer pageSize, String knowTitle, Integer knowCateId, String myStaffCode);

    Message deleteBykey(Integer recId);

    Message praise(Integer recId);

    knowShare getByRecId(Integer recId);

    Message updateSimple(Integer recId, Integer readState, String comment);

    List<knowShare> getByKnowId(Integer knowId);

    void praiseByKS(Integer knowId, String myStaffCode);


    void updateCommentByKS(Integer knowId, String myStaffCode, String comment);

    void updateReadStateByKS(Integer knowId, String myStaffCode);

    knowShare getItemBy_KnowId_myStaffCode(Integer knowId, String myStaffCode);

    //knowMain的getAll，判断是否存在knowId+mystaffCode的数据
    List<knowShare> getByMyStaffCode(String myStaffCode);
}
